const express=require('express');

const app=express();
app.listen(3000);
app.use(express.static('./public'));
app.use(express.urlencoded({
	extended:false
}));
app.post('/add',(req,res)=>{
	if(req.body.user!==''){
		res.send('员工添加成功')
	}
	else{
		res.send('请输入员工信息')
	}
})